package com.zhongli.devplatform.utils;

import java.text.DecimalFormat;

public class DecimalFormatUtil {
    private static DecimalFormat df = new DecimalFormat("#.00");

    public static Double format(Double d) {
        if (d == null) {
            return null;
        }
        return Double.parseDouble(df.format(d));
    }
}
